package com.maple.myeventbus.core;

import java.lang.reflect.Method;

/**
 * Created by maple on 2020-07-10 15:50
 * E-Mail Address：740917401@qq.com
 */
public class SubscribeMethod {
    Method method;
    ThreadMode threadMode;
    Class<?> eventType;

    public Method getMethod() {
        return method;
    }

    public void setMethod(Method method) {
        this.method = method;
    }

    public ThreadMode getThreadMode() {
        return threadMode;
    }

    public void setThreadMode(ThreadMode threadMode) {
        this.threadMode = threadMode;
    }

    public Class<?> getEventType() {
        return eventType;
    }

    public void setEventType(Class<?> eventType) {
        this.eventType = eventType;
    }

    public SubscribeMethod(Method method, ThreadMode threadMode, Class<?> eventType) {
        this.method = method;
        this.threadMode = threadMode;
        this.eventType = eventType;
    }
}
